import { BrowserRouter, Switch, Route } from "react-router-dom";

import Home from "../src/pages/Home/index";
import Recruit from "../src/pages/Recruit/index";
import CompanyInfo from "./pages/CompanyInfo";
import CompanyRecruit from "./pages/CompanyRecruit";
import Search from "./pages/Search/index";
import Login from "../src/pages/Login";
import Mine from "../src/pages/Mine";
import Fav from "../src/pages/Fav";
import Setting from "../src/pages/Setting";
import Password from "../src/pages/Password";
function App() {
  return (
    <BrowserRouter>
      <Switch>
        <Route path="/" exact component={Home} />
        <Route path="/company/detaile/:id" component={CompanyInfo} />
        <Route path="/company/hotRecruit/:id" component={CompanyRecruit} />
        <Route path="/recruit/:id" component={Recruit} />
        <Route path="/search" component={Search} />
        <Route path="/login" component={Login} />
        <Route path="/Mine" component={Mine} />
        <Route path="/Fav" component={Fav} />
        <Route path="/Setting" component={Setting} />
        <Route path="/Password" component={Password} />
      </Switch>
    </BrowserRouter>
  );
}

export default App;
